package com.zd.shopping.fragment;

import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.zd.shopping.R;
import com.zd.shopping.utils.RouterUtils;
import com.zwz.mall.base.BaseFragment;
import com.zwz.mall.utils.BarHeightUtils;
import com.zwz.mall.utils.ToastUtils;

import butterknife.BindView;

/**
 * Created by Administrator on 2019/11/27 0027.
 */

public class IndexFragment extends BaseFragment
{
    @BindView(R.id.fake_status_bar)
    View fakeStatusBar;
    @BindView (R.id.ll_nuclear_goods)
    LinearLayout mLlNuclearGoods;
    @BindView (R.id.ll_deliver_goods)
    LinearLayout mLlDeliverGoods;
    @BindView (R.id.ll_deliver_ditu)
    LinearLayout mLlDeliver_ditu;
    @Override
    protected int getLayoutResource()
    {
        return R.layout.fragment_index;
    }

    @Override
    public void initPresenter()
    {

    }

    @Override
    protected void initView()
    {
        //设置状态栏高度
        BarHeightUtils.setStatusBarHeight(fakeStatusBar, getStatusBarHeight());
    }

    @Override
    protected void fillData()
    {

    }

    @Override
    protected void bindEven()
    {
        mLlNuclearGoods.setOnClickListener (new View.OnClickListener () {
            @Override
            public void onClick(View view) {
                RouterUtils.openNuclearGoodsActivity (getActivity ());
            }
        });
        mLlDeliverGoods.setOnClickListener (new View.OnClickListener () {
            @Override
            public void onClick(View view) {
                RouterUtils.openDeliverGoodsActivity (getActivity ());
            }
        });
        mLlDeliver_ditu.setOnClickListener (new View.OnClickListener () {
            @Override
            public void onClick(View view) {
                RouterUtils.openDeliverGoodsDtActivity (getActivity ());
            }
        });
    }
}
